package com.cpecc.manager.wuzi;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.cpecc.dao.wuzi.BaoFeiJLDao;
import com.cpecc.model.system.User;
import com.cpecc.model.wuzi.BaoFei;
import com.cpecc.model.wuzi.BaoFeiJL;

@Service
@Transactional
public class BaoFeiJLManager {
	
	@Autowired
	private BaoFeiJLDao baoFeiJLDao;

	public void save(BaoFeiJL baoFeiJL){
		baoFeiJLDao.save(baoFeiJL);
	}
	
	public List<BaoFeiJL> getAllJL(String baoFeiId){
		return baoFeiJLDao.getAllJL(baoFeiId);
	}
	
	public List<BaoFei> getMySPJL(User user){
		return baoFeiJLDao.getMySPJL(user);
	}
	
	public List<User> getShenPiLZR(String baoFeiId){
		return baoFeiJLDao.getShenPiLZR(baoFeiId);
	}
	
	public BaoFeiJL last(BaoFei baoFei){
		return baoFeiJLDao.last(baoFei);
	}
	
	public List<User> listBuMen(BaoFei baoFei){
		return baoFeiJLDao.listBuMen(baoFei);
	}
	
	public List<User> listHuiQian(BaoFei baoFei){
		return baoFeiJLDao.listHuiQian(baoFei);
	}
}
